package com.xingzhe.pengji.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Controller
@RequestMapping("/demo")
public class DemoController {

		@RequestMapping(value="/image.html",method=RequestMethod.GET)
		//@Secured("ROLE_ADMIN")
		public String image() {
			return "resourse/jsp/2";
		}
		
		@RequestMapping(value="/anyChart.html")
		public String anyChart()
		{
		    return "resourse/jsp/AnyChart";
		}
	//
	//	@RequestMapping("/index/{username}/{id}.html")
	//	public String index(@PathVariable("username") String username, @PathVariable("id") String id) {
	//		System.out.println(username);
	//		//   System.out.println(id);
	//		return "jsp/user";
	//	}
	//
	//	@Secured("ROLE_ADMIN")
	//	@RequestMapping("/{username}.html")
	//	//@ModelAttribute("user") User user
	//	public String getDetailUser(@PathVariable("username") String username, ModelMap model) {
	//		model.addAttribute(userService.getUserByName(username));
	//		return "jsp/user";
	//	}

}
